import log from '@dfeidao/atom-nodejs/logger/log';
import { IncomingHttpHeaders } from 'http';
import operate from '@dfeidao/atom-nodejs/db/operate';
import { systemid, productid } from '../../atom/config';
interface Message {

	filter:{
		job_content:string[]
	}
}


export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders){
	const op = operate(action_id,session_id,systemid);
	op.del('work_order',{productid,job_content:{$in:message.filter.job_content}});
	return await op.exec();
}
